package com.dh.netty;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class GateWayMain {
	public static void main(String[] args) throws Exception {
		ApplicationContext ctx = new FileSystemXmlApplicationContext("classpath:config/applicationContext.xml");
		NettyServer nettyServer = (NettyServer) ctx.getBean("nettyServer");
		try {
			nettyServer.run(9999);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
